package work20240808.work8;

import java.util.stream.IntStream;

public class demo {
    public static void main(String[] args) {
        A a = new A();
        B b = new B();
        C c = new C();
        D d = new D();
        E e = new E();
        F f = new F();
        G g = new G();
        H h = new H();
        I i = new I();
        J j = new J();
        a.start();
        b.start();
        c.start();
        d.start();
        e.start();
        f.start();
        g.start();
        h.start();
        i.start();
        j.start();
        try {
            a.join();
            b.join();
            c.join();
            d.join();
            e.join();
            f.join();
            g.join();
            h.join();
            i.join();
            j.join();
        } catch (InterruptedException ex) {
            throw new RuntimeException(ex);
        }
        sumTask st = new sumTask();
        st.printTotal();
    }
}
